/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package containers;

/**
 *
 * @author Chris
 */
public class TestScores {
    public String userName;
    public int score;
    
    public TestScores(String _userName, String _score) {
        userName = _userName;
        score = Integer.parseInt(_score);
    }
    public TestScores() {}
    
    @Override
    public int hashCode() {
        int hash = 3;
        hash = 89 * hash + (this.userName != null ? this.userName.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final TestScores other = (TestScores) obj;
        if ((this.userName == null || !this.userName.equals(other.userName))) {
            return false;
        }
        if (this.score != other.score) {
            return false;
        }
        return true;
    }

}
